export const pay = (data: object) => {
    // #ifdef MP-WEIXIN
    return new Promise((resolve, reject) => {
        uni.requestPayment({
            provider: 'wxpay',
            orderInfo: { ...data },
            ...data,
            success: function (res: any) {
                resolve(res)
            },
            fail: function () {
                reject()
            }
        })
    })
    // #endif
}
